﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="cadastro.aspx.cs" Inherits="cadastro"  EnableEventValidation="false"%>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="Panel1" runat="server">
        <table style="width: 100%">
            <tr>
                <td>
                    <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" 
                        CreateUserButtonText="Continuar" 
                        onfinishbuttonclick="CreateUserWizard1_FinishButtonClick" QuestionLabelText="" 
                        QuestionRequiredErrorMessage="" StepPreviousButtonText="" 
                        ContinueDestinationPageUrl="~/Default2.aspx" 
                        oncreateduser="CreateUserWizard1_CreatedUser">
                        <FinishNavigationTemplate>
                            <asp:Button ID="FinishButton" runat="server" CommandName="MoveComplete" 
                                Text="Concluir" />
                            &nbsp;<asp:Button ID="btnCancela" runat="server"
                                Text="Cancelar" />
                        </FinishNavigationTemplate>
                        <StepNavigationTemplate>
                            <asp:Button ID="StepNextButton" runat="server" CommandName="MoveNext" 
                                Text="Continuar" />
                            <asp:Button ID="btnCancela" runat="server" 
                                Text="Cancelar" />
                        </StepNavigationTemplate>
                        <WizardSteps>
                            <asp:CreateUserWizardStep runat="server" Title="Crie seu usuário">
                                <ContentTemplate>
                                    <table border="0">
                                        <tr>
                                            <td align="center" class="titulo3" colspan="2">
                                                Crie seu usuário</td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Crie um nome de usuário:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                    ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                                    ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Crie uma senha:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                                    ControlToValidate="Password" ErrorMessage="Password is required." 
                                                    ToolTip="Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label ID="ConfirmPasswordLabel" runat="server" 
                                                    AssociatedControlID="ConfirmPassword">Confirme a senha:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" 
                                                    ControlToValidate="ConfirmPassword" 
                                                    ErrorMessage="Confirm Password is required." 
                                                    ToolTip="Confirm Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" 
                                                    ControlToValidate="Email" ErrorMessage="E-mail is required." 
                                                    ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2">
                                                <asp:CompareValidator ID="PasswordCompare" runat="server" 
                                                    ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
                                                    Display="Dynamic" 
                                                    ErrorMessage="A senha e a confirmação de senha devem ser iguais." 
                                                    ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2" style="color:Red;">
                                                <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                                            </td>
                                        </tr>
                                    </table>
                                </ContentTemplate>
                            </asp:CreateUserWizardStep>
                            <asp:WizardStep ID="Cliente" runat="server" Title="Informações Básicas">
                                <asp:Panel ID="pnlInserir" runat="server" SkinID="Insercao" Width="100%">
                                    <table style="padding: 3px; width: 100%">
                                        <tr>
                                            <td class="titulo3" colspan="2">
                                                Suas informações</td>
                                        </tr>
                                        <tr>
                                            <td style="width: 193px; text-align: right;">
                                                * Nome:</td>
                                            <td>
                                                <asp:TextBox ID="txtNome" runat="server" Width="300px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 193px; text-align: right;">
                                                CPF</td>
                                            <td>
                                                <asp:TextBox ID="txtCPF" runat="server" Width="100px"></asp:TextBox>
                                                <cc1:MaskedEditExtender ID="txtCPF_MaskedEditExtender" runat="server" 
                                                    CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                    CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                    CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                                                    Mask="999\.999\.999\-99" MaskType="Number" TargetControlID="txtCPF">
                                                </cc1:MaskedEditExtender>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 193px; text-align: right;">
                                                *Data de Nascimento:</td>
                                            <td>
                                                <asp:TextBox ID="txtDataNascimento" runat="server" Width="100px"></asp:TextBox>
                                                <cc1:MaskedEditExtender ID="txtDataNascimento_MaskedEditExtender" 
                                                    runat="server" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                                    CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                                    CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                                                    Mask="99\/99\/9999" MaskType="Date" TargetControlID="txtDataNascimento">
                                                </cc1:MaskedEditExtender>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 193px; text-align: right;">
                                                &nbsp;</td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </asp:WizardStep>
                            <asp:CompleteWizardStep runat="server" Title="Cadastro Concluído" />
                        </WizardSteps>
                    </asp:CreateUserWizard>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>

